#include <stdio.h>
int main()
{
	freopen("zz_test\\test8.in", "r", stdin);
	freopen("zz_test\\test8.out", "w", stdout);
	
	int n = 0;
	scanf("%d", &n);
	int left = n % 123;
	if ( left >= 97 && left <= 122) {
		printf("%c", left);
	}
	else {
		left = n % 91;
		if ( left >=65 && left <= 90 ) {
			printf("%c", left);
		}
		else {
			printf("*");
		}
	}
	return 0;
}
